<?php

namespace plugin\ycMassage\app\admin\validate;

use think\Validate;

class MassageCoupon extends Validate
{
    protected $rule =   [
        'title'            => 'require',
        'money'            => 'require|gt:0',
        'full_money' => 'requireIf:use_type,FULL_DEC|gt:0',
    ];

    protected $message  =   [
        'title.require'            => '请输入名称',
        'money.require'            => '请输入面值',
        'money.gt'                 => '面值必须大于0',
        'full_money.requireIf'     => '请输入满减金额',
        'full_money.gt'            => '满减金额必须大于0',
    ];
}
